package com.liao.furns.service.impl;

import com.liao.furns.dao.AdminDao;
import com.liao.furns.dao.impl.AdminDaoImpl;
import com.liao.furns.pojo.Admin;
import com.liao.furns.pojo.Member;
import com.liao.furns.service.AdminService;

/**
 * @author lzp
 * @version 1.0
 * lzpnb!
 */
public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao= new AdminDaoImpl();
    public Admin login(Admin admin){
        return adminDao.queryMemberByUsernameAndPassword(admin.getUsername(),admin.getPassword());
    }
}
